Skip to content

Remove some unnecessary parens in assert! conditions - #135945

Merged
bors merged 1 commit into
rust-lang:masterfrom
estebank:useless-parens
Feb 7, 2025
Merged

bors merged 1 commit into
rust-lang:masterfrom
estebank:useless-parens

Conversation

@estebank

Copy link
Copy Markdown
Contributor

While working on #122661, some of these started triggering our "unnecessary parens" lints due to a change in the assert! desugaring. A cursory search identified a few more. Some of these have been carried from before 1.0, were a bulk rename from the previous name of assert! left them in that state. I went and removed as many of these unnecessary parens as possible in order to have fewer annoyances in the future if we make the lint smarter.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants